package com.ems.sys.service;
import com.ems.sys.pojo.Department;
import com.github.pagehelper.PageInfo;
import java.util.List;
/****
 * @Author:传智播客
 * @Description:Department业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface DepartmentService {

    /***
     * Department多条件分页查询
     * @param department
     * @param page
     * @param size
     * @return
     */
    PageInfo<Department> findPage(Department department, int page, int size);

    /***
     * Department分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<Department> findPage(int page, int size);

    /***
     * Department多条件搜索方法
     * @param department
     * @return
     */
    List<Department> findList(Department department);

    /***
     * 删除Department
     * @param id
     */
    void delete(String id);

    /***
     * 修改Department数据
     * @param department
     */
    void update(Department department);

    /***
     * 新增Department
     * @param department
     */
    void add(Department department);

    /**
     * 根据ID查询Department
     * @param id
     * @return
     */
     Department findById(String id);

    /***
     * 查询所有Department
     * @return
     */
    List<Department> findAll();
}
